package glossos.parsing.action;

import glossos.parsing.WordBuffer;

/**
 * This action appends a {@link WordBuffer} character to the WordBuffer. 
 * @author Otavio Macedo
 *
 */
public class AppendCandidateAction implements Action {
	
	private WordBuffer buffer;
	
	public AppendCandidateAction(WordBuffer buffer) {
		this.buffer = buffer;
	}

	public void execute(char c) {
		buffer.appendCandidate(c);
	}

}
